<?php

ini_set('display_errors', 1);
require_once '/data/wwwroot/g_vendor/autoload.php';


$do = $argv[1] ?? 0;
$uid = $argv[2] ?? 0;

if ($do) {
    // 111
    $ids = \Biz\model\advertisement\MPositionBaseInfo::select('id', ['position_id' => 30, 'pos' => 1]);
    if ($ids) {
        $data = [
            'position_id' => 64,
            'pos' => 0,
        ];

        $where = [
            'id' => $ids
        ];
        var_dump(count($ids));
        \Biz\model\advertisement\MPositionBaseInfo::update($data, $where);
        var_export(\Biz\model\advertisement\MPositionBaseInfo::log());
    }


}

